package com.study5.mybatis.dayima.service.impl;

import com.study5.mybatis.dayima.model.BaseSupplier;
import com.study5.mybatis.dayima.service.BaseSupplierService;
import com.yoloho.dao.api.EnhancedDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author xuly
 * @title: BaseSupplierServiceImpl
 * @projectName spring-boot
 * @description: TODO
 * @date 2019-07-2411:56
 **/
@Service
public class BaseSupplierServiceImpl implements BaseSupplierService {
    @Resource
    private EnhancedDao<BaseSupplier,Integer> baseSupplierEnhancedDao;

//    @Override
//    public List<BaseSupplier> getSupplierByQuery(BaseSupplier baseSupplier) {
//        return baseSupplierMapper.getSupplierByQuery(baseSupplier);
//    }

    @Override
    public BaseSupplier getBaseSupplierById(Integer id) {
        return baseSupplierEnhancedDao.get(id);
    }
}
